package com.itcast.gameforum.service.impl;

import com.itcast.gameforum.entity.Mainposts;
import com.itcast.gameforum.mapper.MainpostsMapper;
import com.itcast.gameforum.service.MainpostsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 647zyzlq
 * @since 2020-10-26
 */
@Service
public class MainpostsServiceImpl extends ServiceImpl<MainpostsMapper, Mainposts> implements MainpostsService {

    @Autowired
    MainpostsMapper mainpostsMapper;

    @Override
    public int saveMainPost(Mainposts mainposts) {
        return mainpostsMapper.saveMainPost(mainposts);
    }
}
